package org.agent.aigccore.dao;

import org.agent.aigccore.basic.enums.IotDeviceStatusEnum;
import org.agent.aigccore.basic.enums.IotDeviceWorkStatusEnum;
import org.agent.aigccore.model.bo.IotDeviceBO;

import java.util.List;

public interface IotDeviceRepository {

    IotDeviceBO load(Long id, boolean lock);

    List<IotDeviceBO> page(IotDeviceStatusEnum deviceStatus, IotDeviceWorkStatusEnum workStatus, int offset, int pageSize);

    int insert(IotDeviceBO iotDeviceBO);

    int update(IotDeviceBO iotDeviceBO);

    int delete(Long id);
}